import { Component } from '@angular/core';

@Component({
  selector: 'app-svg-canvas',
  standalone: false,
  templateUrl: './svg-canvas.component.html',
  styleUrl: './svg-canvas.component.css'
})
export class SvgCanvasComponent {
  public dataType = 1
  public drawType: 'svg' | 'antv x6' | 'konva' = 'konva'
  changeDataType(dataType: number): void {
    this.dataType = dataType;
  }
  changeDrawType(currentDrawType: 'svg' | 'antv x6' | 'konva'): void {
    // 在两种绘制类型之间切换
    this.drawType = currentDrawType
  }
}
